#coding:utf8
import random
sum=0
t=0
limit=8
while True:
    s=input("enter y or n:\n")
    if s=='y':
        k=random.randint(1,10)
        num=0
        while True:
            c=int(input("please enter the number:"))
            num+=1            
            if c==k:
                print("right")  
                sum+=num
                # print(sum)
                t=t+1
                # print(t)                
                break
            elif c<k:
                print("small")
            else:
                print("big")
            if num>=limit:
                break
       
    else:
        break
if t==0:
    print("no")
else:
    print(sum/t)
    
        